package com.yy.micro.magic.ext.domain.code;

public class CodeMapItem {
    private String codeName;
    private String srcItemName;
    private Object srcValue;
    private String targetItemName;
    private Object targetValue;
    private String description;

    public String getCodeName() {
        return codeName;
    }

    public void setCodeName(final String codeName) {
        this.codeName = codeName;
    }

    public String getSrcItemName() {
        return srcItemName;
    }

    public void setSrcItemName(final String srcItemName) {
        this.srcItemName = srcItemName;
    }

    public Object getSrcValue() {
        return srcValue;
    }

    public void setSrcValue(final Object srcValue) {
        this.srcValue = srcValue;
    }

    public String getTargetItemName() {
        return targetItemName;
    }

    public void setTargetItemName(final String targetItemName) {
        this.targetItemName = targetItemName;
    }

    public Object getTargetValue() {
        return targetValue;
    }

    public void setTargetValue(final Object targetValue) {
        this.targetValue = targetValue;
    }

    public void setDescription(final String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public boolean matchValue(Object value){
        return null != srcValue && srcValue.equals(value);
    }
}
